package com.yhcnet.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class File {

    @TableId(type = IdType.AUTO)
    private int fid;
    private int uid;
    private int pid;
    private int folder;
    private String filename;
    private String newname;
    private String suffix;
    private double size;
    private int type;

    @Version //乐观锁版本号
    private int version;

    @TableLogic //逻辑删除
    private int deleted;

    private String md5;
    private int download;
    private String createTime;
    private String updateTime;
}
